pull: Fix crash specifying override URL in summary fetch
authorDan Nicholson <nicholson@endlessm.com>
Wed, 3 May 2017 16:31:58 +0000 (11:31 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 3 May 2017 18:08:37 +0000 (18:08 +0000)
commit59897f2b8484e322a77f23cc0d532dbd3de6aac6
tree072bed2508fcbb03e8451e0fbf446944d38326df
parent4c731165bb945bff834ed6a4129c5305d841073a
pull: Fix crash specifying override URL in summary fetch

The summary URL override is looked up with "&s", which directly
exchanges the data to a pointer without allocation. This was causing a
segfault calling ostree_repo_remote_fetch_summary_with_options from
pygobject.

Closes: #829
Approved by: jlebon
src/libostree/ostree-repo-pull.c